package cn.itsource.service;

import cn.itsource.domain.User;
import cn.itsource.dto.ModifyPasswordDto;
import cn.itsource.query.Query;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface UserService {

     List<User> findAll();

     User findOne(Long id);

     void add(User user);

     void update(User user);

     void delete(Long id);


     //分页+模糊查询
    PageInfo<User> pageQuery(Query query);


     void patchdel(Long[] ids);

    User tologin(Map<String, String> map);

    //修改密码
    void modifyPassword(ModifyPasswordDto modifyPasswordDto, User user);
}
